function dynamicUrl() {
	const {
		miniProgram = {}
	} = uni.getAccountInfoSync ? uni.getAccountInfoSync() : {} as any;

	const basePath = 'https://hr.asagroup.cn/'; //线上
	const basePathDev = 'https://hr.devcloud.asagroup.cn/'; // 测试


	let bucket = 'zxtest001';
	let url = basePath;
	if (miniProgram.envVersion === 'release') {
		url = basePath;
		bucket = 'asal';
	}
	if (miniProgram.envVersion === 'trial') {
		url = basePath;
		url = basePathDev;
	}
	if (miniProgram.envVersion === 'develop') {
		url = basePath;
		url = basePathDev;
	}
	return {
		url,
		bucket,
		uploadFolder: 'l-web-pc'
	};
}
const REQUEST_ORIGIN = dynamicUrl();

export default {
	bucket: REQUEST_ORIGIN.bucket,
	basePath: REQUEST_ORIGIN.url,
	uploadOssFolder: REQUEST_ORIGIN.uploadFolder,
}